<?php   
   $pathinfo = pathinfo($_SERVER['REQUEST_URI']); //print_r($pathinfo);  //print info test 
   $base = $pathinfo['basename'];
?>
<script type="text/javascript">
jQuery(function(){
	jQuery("#KinSlideshow").KinSlideshow({
			moveStyle:"down",
			intervalTime:8,
			mouseEvent:"", //mouseover
			titleFont:{TitleFont_size:14,TitleFont_color:"#FF0000"}
	});
})
</script>
      <div class="co_left">
        <div class="slide_img">
          <div id="KinSlideshow" style="visibility:hidden;">
          <?php 
           		$images = Mage::getModel('imagegallery/imagegallery')->getCollection()
           					->addFieldToFilter('cat_id',array('in'=>'1'))
							->setOrder('post_id', 'asc')
           					->setPageSize($count);
           					
           		Mage::getSingleton('imagegallery/status')->addEnabledFilterToCollection($images);
			?>
			<?php foreach ($images as $image):?>
			<?php if ($image->getNfile()):?>
<a href="<?php echo $image->getLinkurl()?>" target="<?php if ($image->getNewtab()==1){ echo '_blank';}else{echo '_self';}?>"><img src="/image.php?width=694&height=216&cropratio=1.7:1&image=<?php echo Mage::getBaseUrl('media') .$image->getNfile()?>" alt="<?php echo $image->getTitle()?>"  /></a>
			<?php endif;?>
			<?php endforeach;?>
			

    </div>
        </div>
       
        <div class="column1">
        <?php 
        		$count = Mage::getStoreConfig('news/news/homeperpage');
           		$news_post = Mage::getModel('news/news')->getCollection()
//           					->addFieldToFilter('feature_this_story',array('in'=>'1'))
							->setOrder('created_time', 'desc')
           					->setPageSize($count);
           		Mage::getSingleton('news/status')->addEnabledFilterToCollection($news_post);
			?>
          <div class="popular-news">
            <h1 class="new-t"><span>Most popular news</span></h1>
            <div class="popular-news-box">
              <div class="box_img"><img src="<?php echo $this->getSkinUrl()?>images/white_circle_top.png"/></div>
              <div class="popular-news-content">
              <?php $k=0; foreach ($news_post as $post):?>
                 <table width="100%" border="0" cellspacing="0" cellpadding="0" style="<?php if ($k!=0) echo 'margin-top: 9px;';?>">
              <tr>
                <td>
                <?php $k++; if ($post->getNfile()):?>
                <a href="<?php echo $this->getUrl().'news/cat/news/post/' .$post->getIdentifier()?>" target="_self">
                <img src="/image.php?width=158&height=96&cropratio=1.7:1&image=<?php echo Mage::getBaseUrl('media') .$post->getNfile()?>"/>
                </a>
                <?php else:?>
                <img src="<?php echo $this->getSkinUrl()?>images/news_img1.jpg"/>
                <?php endif;?>
                
                </td>
                <td valign="top" class="news_des"><h2><span>0<?php echo $k?>.</span> <?php echo $post->getTitle();?></h2>
                  <?php echo $this->subwords($post->getPostContent(),30)?>
              </tr>
              <tr>
                <td colspan="2"><table width="100%" cellspacing="0" cellpadding="0" class="recui_bottom">
                    <tbody>
                      <tr>
                        <td class="right_bt"><img style="vertical-align: middle;" src="<?php echo $this->getSkinUrl()?>images/mark1.png"> <span class="mentions">9 mentions</span> <img style="vertical-align: middle;" src="<?php echo $this->getSkinUrl()?>images/retweet.jpg"> <img style="vertical-align: middle;margin-left:9px;" src="<?php echo $this->getSkinUrl()?>images/like.jpg"> <span class="like_num">4</span></td>
                        <td  align="right" ><input  onclick="location.href='<?php echo $this->getUrl().'news/cat/news/post/' .$post->getIdentifier()?>'" type="image" src="<?php echo $this->getSkinUrl()?>images/read_more_bt.png"></td>
                      </tr>
                    </tbody>
                  </table></td>
              </tr>
            </table>
			<?php endforeach;?>
              </div>
              <div class="box_img"><img src="<?php echo $this->getSkinUrl()?>images/white_circle_bottom.png"/></div>
            </div>
          </div>
<script type="text/javascript">	
var booked_mot = new Array();
var booked_service=new Array();
var mot_or_book;
</script>
          <div class="calculator">
          <div class="cal-img"><img src="<?php echo $this->getSkinUrl()?>images/calculator_bg_top.png"/></div>
          <div class="cal-bg">
            <div class="calculator_box">
              <table id="pop_calendar" class="pop_calendar" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                  <tr>
                    <td id="cc"></td>
                  </tr>
                </tbody>
              </table>
            </div>
            <div class="events-cal">
                 <h1 class="title-c">DOME events CALENDAR</h1>
                 <p class="des-c">Select a date from thr calendar to display results below...</p>
                 <table class="events-cal-table" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="date">23/03/11</td>
  </tr>
  <tr>
    <td class="des">'With this ring' wedding show</td>
  </tr>
  <tr>
    <td align="right" class="read-more"><input type="image" src="<?php echo $this->getSkinUrl()?>images/book-and-more.png"></td>
  </tr>
</table>
                 <table class="events-cal-table" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="date">23/03/11</td>
  </tr>
  <tr>
    <td class="des">'With this ring' wedding show</td>
  </tr>
  <tr>
    <td align="right" class="read-more"><input type="image" src="<?php echo $this->getSkinUrl()?>images/book-and-more.png"></td>
  </tr>
</table>  
<a class="bt-view-all" href="#"><img src="<?php echo $this->getSkinUrl()?>images/view-all-up-coming-events.png"/></a>
            </div>
            <div class="clearfloat"></div>
            </div>
          <div class="cal-img"><img src="<?php echo $this->getSkinUrl()?>images/calculator_bg_bottom.png"/></div>
            
          </div>
          <script language="javascript" type="text/javascript" src="<?php echo $this->getSkinUrl()?>js/dates.js"></script>
        </div>
        <div class="column2">
            <div class="h_calendar_events">
    <div class="h_calendar_events_title">
      <h1>CALENDAR & EVENTS</h1>
    </div>
    <div class="h_calendar_events_container">
      <div  class="h_calendar_events_container_t" style="height:26px;">
        <div class="h_c_e_nav h_feature" onclick="changeEvents(this,1,4)">
          <div class="h_c_e_nav_w"> Features</div>
        </div>
        <div class="h_c_e_nav h_wh_on" onclick="changeEvents(this,2,4)">
          <div class="h_c_e_nav_w">Whats On</div>
        </div>
        <div class="h_c_e_nav h_venues" onclick="changeEvents(this,3,4)">
          <div class="h_c_e_nav_w">Venues</div>
        </div>
        <div class="h_c_e_nav h_venues h_news" onclick="changeEvents(this,4,4)">
          <div class="h_c_e_nav_w">News</div>
        </div>
        <div class="clearfloat"></div>
      </div>
      <div  class="h_calendar_events_container_m">
        <div class="h_c_e_container_m_con" id="h_c_e_container_m_con_1">
          <div class="h_ce_part">
            <div class="ce_img"><img src="<?php echo $this->getSkinUrl()?>images/t_calendar_event_1.gif" /></div>
            <div class="ce_content">
              <div class="ce_content_title"> 01.A Midsummer Night's Dream </div>
              <div class="ce_content_desc"> From the editors comes this exclusive concert just for you </div>
            </div>
            <div class="clearfloat"></div>
          </div>
          <div class="ce_line"></div>
          <div class="h_ce_part">
            <div class="ce_img"><img src="<?php echo $this->getSkinUrl()?>images/t_calendar_event_2.gif" /></div>
            <div class="ce_content">
              <div class="ce_content_title"> 01.A Midsummer Night's Dream </div>
              <div class="ce_content_desc"> From the editors comes this exclusive concert just for you </div>
            </div>
            <div class="clearfloat"></div>
          </div>
          <div class="ce_line"></div>
          <div class="h_ce_part">
            <div class="ce_img"><img src="<?php echo $this->getSkinUrl()?>images/t_calendar_event_3.gif" /></div>
            <div class="ce_content">
              <div class="ce_content_title"> 01.A Midsummer Night's Dream </div>
              <div class="ce_content_desc"> From the editors comes this exclusive concert just for you </div>
            </div>
            <div class="clearfloat"></div>
          </div>
        </div>
        <div class="h_c_e_container_m_con" id="h_c_e_container_m_con_2" style="display:none"> what's on </div>
        <div class="h_c_e_container_m_con" id="h_c_e_container_m_con_3"  style="display:none"> Venues </div>
        <div class="h_c_e_container_m_con" id="h_c_e_container_m_con_4"  style="display:none">  News</div>
      </div>
    </div>
    <div  class="h_calendar_events_container_b"> Content updated: 23/03/2011  10:25 </div>
  </div>
  <a href="#" class="banner"><img src="<?php echo $this->getSkinUrl()?>images/banner1.png"/></a>
  <div class="h_newletter_module">
       <div class="h_newletter_module_con">
           
           <div class="h_newletter_readme">
               <h1>The dome newsletter</h1>
               <div>Receive the latest news, competitions and lots more</div>
           </div>
           <form id="newsletterForm" action="<?php echo $this->getUrl()?>contacts/newsletter/post/" method="post">
           <div class="h_newletter_input h_newletter_fullname">
                <input id="fullname" type="text" name="fullname" class="input tishi-input required-entry" tishinum='2' value="Enter Full Name" />
           </div>
           <div class="h_newletter_input h_newletter_email">
                <input id="email" type="text" name="email" class="input tishi-input required-entry validate-email" tishinum='3'  value="Enter Email Address" />
           </div>
           <div class="h_newletter_module_submit">
                <div class="h_newletter_module_s su_check">
             <input type="checkbox" name="checkbox" onclick=" dome_pop_up(573,385,'dome_newsletter_box',fullname,email);dome_pop_show(this,'dome_newsletter_pop','dome_newsletter_box');" />
                </div>
                <div class="h_newletter_module_s su_text">
                   Send me news from all DCLT Centres 
                </div>
                <div class="h_newletter_module_s su_button">
                  <input type="image"  name="submit" src="<?php echo $this->getSkinUrl()?>images/h_newletter_sub_bg.png"/>
                </div>
           </div>
       	  </form>
       	  <script type="text/javascript">
		      var newsletterForm = new VarienForm('newsletterForm', false);
		    </script>
       </div>
       
</div>
        </div>
        <div class="clearfloat"></div>
      </div>


